Commit 68bd4ef6 authored by Michal Čihař's avatar Michal Čihař

Fix testsuite

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b5442624
...@@ -654,12 +654,12 @@ class SourceTest(RepoTestCase): ...@@ -654,12 +654,12 @@ class SourceTest(RepoTestCase):
def test_source_info(self): def test_source_info(self):
unit = Unit.objects.all()[0] unit = Unit.objects.all()[0]
self.assertIsNotNone(unit.get_source_string_info()) self.assertIsNotNone(unit.source_info)
def test_priority(self): def test_priority(self):
unit = Unit.objects.all()[0] unit = Unit.objects.all()[0]
self.assertEquals(unit.priority, 100) self.assertEquals(unit.priority, 100)
source = unit.get_source_string_info() source = unit.source_info
source.priority = 200 source.priority = 200
source.save() source.save()
unit2 = Unit.objects.get(pk=unit.pk) unit2 = Unit.objects.get(pk=unit.pk)
......
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