Commit e10384b9 authored by Michal Čihař's avatar Michal Čihař

Count translations, whether project was actually loaded

parent 7d9d6636
...@@ -101,18 +101,22 @@ class SubProjectTest(RepoTestCase): ...@@ -101,18 +101,22 @@ class SubProjectTest(RepoTestCase):
def test_create(self): def test_create(self):
project = self.create_subproject() project = self.create_subproject()
self.assertTrue(os.path.exists(project.get_path())) self.assertTrue(os.path.exists(project.get_path()))
self.assertEqual(project.translation_set.count(), 2)
def test_create_iphone(self): def test_create_iphone(self):
project = self.create_iphone() project = self.create_iphone()
self.assertTrue(os.path.exists(project.get_path())) self.assertTrue(os.path.exists(project.get_path()))
self.assertEqual(project.translation_set.count(), 1)
def test_create_java(self): def test_create_java(self):
project = self.create_java() project = self.create_java()
self.assertTrue(os.path.exists(project.get_path())) self.assertTrue(os.path.exists(project.get_path()))
self.assertEqual(project.translation_set.count(), 1)
def test_create_xliff(self): def test_create_xliff(self):
project = self.create_xliff() project = self.create_xliff()
self.assertTrue(os.path.exists(project.get_path())) self.assertTrue(os.path.exists(project.get_path()))
self.assertEqual(project.translation_set.count(), 1)
def test_link(self): def test_link(self):
project = self.create_iphone() project = self.create_iphone()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment