From 8ad47e16a5e57d0fbd28ab22d6bbe400a10fd6c7 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 19 Nov 2009 21:58:35 -0800 Subject: [PATCH] test: Test the model's 'remotes' attribute Signed-off-by: David Aguilar --- test/test_cola_models_main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_cola_models_main.py b/test/test_cola_models_main.py index b913dc7b..d0942908 100644 --- a/test/test_cola_models_main.py +++ b/test/test_cola_models_main.py @@ -51,3 +51,9 @@ class MainModelTestCase(helper.GitRepositoryTestCase): self.shell('echo C > C') self.model.update_status() self.assertEqual(self.model.untracked, ['C']) + + def test_remotes(self): + """Test the 'remote' attribute.""" + self.shell('git remote add origin .') + self.model.update_status() + self.assertEqual(self.model.remotes, ['origin']) -- 2.11.4.GIT