def test_it_returns_the_correct_group_array(self): data = {'to': 'foo', 'hop': 'test hopping groups'} command = Command(data) result = command.getGroups() self.assertEquals(result, ['test', 'hopping'])
def test_it_returns_empty_an_array_when_groups_not_set(self): data = {'to': 'foo', 'hop': None} command = Command(data) result = command.getGroups() self.assertEquals(result, [])