From c4cc7474aa8ad4c90c14d3f8c3dd12179d27526c Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Fri, 20 Nov 2009 10:59:29 -0800 Subject: [PATCH] test: Add a test for the model's 'tags' attribute Signed-off-by: David Aguilar --- test/test_cola_models_main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_cola_models_main.py b/test/test_cola_models_main.py index 64603623..7bd106f0 100644 --- a/test/test_cola_models_main.py +++ b/test/test_cola_models_main.py @@ -66,5 +66,12 @@ class MainModelTestCase(helper.GitRepositoryTestCase): self.model.update_status() self.assertEqual(self.model.currentbranch, 'test') + def test_tags(self): + """Test the 'tags' attribute.""" + self.shell('git tag test') + self.model.update_status() + self.assertEqual(self.model.tags, ['test']) + + if __name__ == '__main__': unittest.main() -- 2.11.4.GIT