Exemplo n.º 1
0
 def test_apps_are_filtered_by_prefix_even_with_args(self):
     labels = Command.prepare_labels('my_cool_app', 'my_uncool_app', 'north', prefix='pref.apps')
     self.assertEqual(set(labels), set(['my_cool_app', 'my_uncool_app']))
Exemplo n.º 2
0
 def test_no_filtering_without_prefix(self):
     labels = Command.prepare_labels()
     self.assertEqual(set(labels), set([]))
Exemplo n.º 3
0
 def test_apps_are_filtered_by_prefix(self):
     labels = Command.prepare_labels(prefix='pref.apps')
     self.assertEqual(set(labels), set(['my_cool_app', 'my_uncool_app', 'my_another_app']))