'Check negative and decimal number can\'t be accepted.'

def test_invalid_memory_mb(self):

    self.assertRaises(exception.InvalidInput, flavors.create, 'abc', (-512), 2, 1, 1, 1234, 512, 1, True)
    self.assertRaises(exception.InvalidInput, flavors.create, 'abcd', 512.2, 2, 1, 1, 1234, 512, 1, True)
    self.assertRaises(exception.InvalidInput, flavors.create, 'abcde', None, 2, 1, 1, 1234, 512, 1, True)
    self.assertRaises(exception.InvalidInput, flavors.create, 'abcdef', 512, 2, None, 1, 1234, 512, 1, True)
    self.assertRaises(exception.InvalidInput, flavors.create, 'abcdef', 'test_memory_mb', 2, None, 1, 1234, 512, 1, True)
