def register_check_password(self): new_iphone2 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_iphone2.apple_id_check_password = '******' self.assertEqual(new_iphone2.apple_id_check_password, '12345')
def register(self): new_iphone = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_iphone.apple_id_username = '******' self.assertEqual(new_iphone.apple_id_username, 'user')
def test_battery(self): new_phone = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_phone.battery = 0 self.assertEqual(new_phone.battery, 0)
def test_id(self): new_phone7 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_phone7.apple_id = True self.assertEqual(new_phone7.apple_id, True)
def test_model(self): new_phone4 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_phone4.model = 'XS MAX' self.assertEqual(new_phone4.model, 'XS MAX')
def test_processor(self): new_phone3 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_phone3.processor = 'A12' self.assertEqual(new_phone3.processor, 'A12')
def test_power(self): new_phone2 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_phone2.power = 0 self.assertEqual(new_phone2.power, 0)
def test_camera(self): new_phone1 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS') new_phone1.camera = 0 self.assertEqual(new_phone1.camera, 0)