def test_should_return_true_if_instance_is_preemptible(self): # given model = BaseModel(standalone=False) model.instance_type = 'zync-instance-PREEMPTIBLE' # then self.assertTrue(model.is_instance_type_preemptible)
def test_should_return_false_if_instance_not_preemptible(self): # given model = BaseModel(standalone=False) model.instance_type = 'zync-instance' # then self.assertFalse(model.is_instance_type_preemptible)