Exemple #1
0
    def test_from_arguments(self):
        group_by = TagGroupBy.from_arguments(['host', 'cpu'])

        self.assertEqual(group_by.tags, ['host', 'cpu'])
    def test_from_arguments(self):
        group_by = TagGroupBy.from_arguments(['host', 'cpu'])

        self.assertEqual(group_by.tags, ['host', 'cpu'])
Exemple #3
0
 def test_should_fail_if_arguments_are_not_list(self):
     with self.assertRaisesRegexp(
             GroupByException,
             "Invalid args type: <type 'str'>, must be a list or tuple."):
         TagGroupBy.from_arguments('not_a_list')
 def test_should_fail_if_arguments_are_not_list(self):
     with self.assertRaisesRegexp(GroupByException, "Invalid args type: <type 'str'>, must be a list or tuple."):
         TagGroupBy.from_arguments('not_a_list')