Beispiel #1
0
 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')
Beispiel #2
0
 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')
Beispiel #3
0
 def test_battery(self):
     new_phone = Iphone('XS MAX', '2018', '6.5', '12', 'IOS')
     new_phone.battery = 0
     self.assertEqual(new_phone.battery, 0)
Beispiel #4
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)
Beispiel #5
0
 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')
Beispiel #6
0
 def test_processor(self):
     new_phone3 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS')
     new_phone3.processor = 'A12'
     self.assertEqual(new_phone3.processor, 'A12')
Beispiel #7
0
 def test_power(self):
     new_phone2 = Iphone('XS MAX', '2018', '6.5', '12', 'IOS')
     new_phone2.power = 0
     self.assertEqual(new_phone2.power, 0)
Beispiel #8
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)