Skip to content

Commit 21a5a8f

Browse files
committed
Add test_axl_filename
1 parent deab302 commit 21a5a8f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
import unittest
3+
4+
from axelrod.load_data_ import axl_filename
5+
6+
7+
class TestLoadData(unittest.TestCase):
8+
def test_axl_filename(self):
9+
actual_fn = axl_filename("axelrod/strategies/titfortat.py")
10+
11+
# First go from "unit" up to "tests", then up to "axelrod"
12+
dirname = os.path.dirname(__file__)
13+
expected_fn = os.path.join(dirname, "../../strategies/titfortat.py")
14+
15+
self.assertTrue(os.path.samefile(actual_fn, expected_fn))

0 commit comments

Comments
 (0)