'UserPartition.get_group correctly returns the group referenced by the
`group_id` parameter, or raises NoSuchUserPartitionGroupError when
the lookup fails.'

def test_get_group(self):

    self.assertEqual(self.user_partition.get_group(self.TEST_GROUPS[0].id), self.TEST_GROUPS[0])
    self.assertEqual(self.user_partition.get_group(self.TEST_GROUPS[1].id), self.TEST_GROUPS[1])
    with self.assertRaises(NoSuchUserPartitionGroupError):
        self.user_partition.get_group(3)
