Esempio n. 1
0
	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'])
Esempio n. 2
0
	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, [])