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']))
def test_no_filtering_without_prefix(self): labels = Command.prepare_labels() self.assertEqual(set(labels), set([]))
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']))