Windows symlink: more small fixes

This commit is contained in:
Dmitry Petrov
2017-04-10 14:32:26 -07:00
parent 376f139f81
commit 92553358e6
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class TestDvcPathTest(TestCase):
self.assertEqual(path.dvc, dvc_file_name)
self.assertEqual(path.filename, os.path.basename(dvc_file_name))
self.assertEqual(path.relative, relative_file_name)
self.assertEquals(path.abs[0], os.path.sep)
self.assertTrue(os.path.isabs(path.abs[0]))
self.assertTrue(path.abs.endswith(dvc_file_name))
def basic_test(self):
+2 -1
View File
@@ -53,7 +53,8 @@ class ReproBasicEnv(RunBasicTest):
self.assertEqual(cmd_res.code_dependencies, [self.file_res_code_file])
cmd_res.run()
self.assertEqual(open(self.file_name_res).read().strip(), 'Hello' + os.linesep + 'Bobby')
lines = list(filter(None, map(str.strip, open(self.file_name_res).readlines())))
self.assertEqual(lines, ['Hello', 'Bobby'])
def create_file_and_commit(self, file_name, content='Any', message='Just a commit'):
self.create_file(file_name, content)