def test_gt_equal_values(self): obj0 = form_data_entry.FormDataEntry("self.example0_name", "self.example0_value", "self.example0_filename") obj1 = form_data_entry.FormDataEntry("self.example1_name", "self.example1_value", "self.example1_filename") result = obj1 > obj0 self.assertTrue(result)
def test_eq(self): obj0 = form_data_entry.FormDataEntry(self.example0_name, self.example0_value, self.example0_filename) obj1 = form_data_entry.FormDataEntry(self.example1_name, self.example1_value, self.example1_filename) result = obj0 == obj1 self.assertTrue(result)
def test_lt(self): obj0 = form_data_entry.FormDataEntry(self.example0_name, self.example0_value, self.example0_filename) obj1 = form_data_entry.FormDataEntry(self.example2_name, self.example2_value, self.example2_filename) result = obj1 < obj0 self.assertTrue(result)
def test_new_object(self): obj = form_data_entry.FormDataEntry() self.assertIsNone(obj.name) self.assertIsNone(obj.value) self.assertIsNone(obj.filename) self.assertTrue(obj.is_submitable)
def test_positional(self): obj = form_data_entry.FormDataEntry(self.example0_name, self.example0_value, self.example0_filename) self.assertEqual(obj.name, self.example0_name) self.assertEqual(obj.value, self.example0_value) self.assertEqual(obj.filename, self.example0_filename)
def test_set_submitable(self): obj = form_data_entry.FormDataEntry() obj.is_submitable = False self.assertFalse(obj.is_submitable)
def test_set_filename(self): obj = form_data_entry.FormDataEntry() obj.filename = self.example0_filename self.assertEqual(obj.filename, self.example0_filename)
def test_set_value(self): obj = form_data_entry.FormDataEntry() obj.value = self.example0_value self.assertEqual(obj.value, self.example0_value)
def test_new_object_with_submitable(self): obj = form_data_entry.FormDataEntry(is_submitable=False) self.assertFalse(obj.is_submitable)
def test_new_object_with_filename(self): obj = form_data_entry.FormDataEntry(filename=self.example0_filename) self.assertEqual(obj.filename, self.example0_filename)
def test_new_object_with_value(self): obj = form_data_entry.FormDataEntry(value=self.example0_value) self.assertEqual(obj.value, self.example0_value)