'Test list_sizes functionality.'

def test_list_sizes(self):

    sizes = self.driver.list_sizes()
    self.assertEqual(len(sizes), 3)
    size = sizes[0]
    self.assertEqual(size.id, '1')
    self.assertEqual(size.name, 'small')
    self.assertEqual(size.ram, None)
    self.assertEqual(size.disk, None)
    self.assertEqual(size.bandwidth, None)
    self.assertEqual(size.price, None)
    size = sizes[1]
    self.assertEqual(size.id, '2')
    self.assertEqual(size.name, 'medium')
    self.assertEqual(size.ram, None)
    self.assertEqual(size.disk, None)
    self.assertEqual(size.bandwidth, None)
    self.assertEqual(size.price, None)
    size = sizes[2]
    self.assertEqual(size.id, '3')
    self.assertEqual(size.name, 'large')
    self.assertEqual(size.ram, None)
    self.assertEqual(size.disk, None)
    self.assertEqual(size.bandwidth, None)
    self.assertEqual(size.price, None)
