Beispiel #1
0
 def test_new_blank_old_blank_no_update(self):
     self.d.case_name = ""
     d = update_case_names(self.d, "")
     self.assertEqual(d.case_name, "")
Beispiel #2
0
 def test_new_uct_old_blank_updates(self):
     self.d.case_name = ""
     d = update_case_names(self.d, self.uct)
     self.assertEqual(d.case_name, self.uct)
Beispiel #3
0
 def test_new_blank_old_uct_no_update(self):
     self.d.case_name = self.uct
     d = update_case_names(self.d, "")
     self.assertEqual(d.case_name, self.uct)
Beispiel #4
0
 def test_new_uct_old_v_no_update(self):
     self.d.case_name = self.v_case_name
     d = update_case_names(self.d, self.uct)
     self.assertEqual(d.case_name, self.v_case_name)
Beispiel #5
0
 def test_new_v_old_uct_updates(self):
     """Do we update if new has a value and old is UCT"""
     self.d.case_name = self.uct
     d = update_case_names(self.d, self.new_case_name)
     self.assertEqual(d.case_name, self.new_case_name)
Beispiel #6
0
 def test_new_v_old_v_updates(self):
     """Do we update if new is different and old has a value?"""
     self.d.case_name = self.v_case_name
     d = update_case_names(self.d, self.new_case_name)
     self.assertEqual(d.case_name, self.new_case_name)
Beispiel #7
0
 def test_new_blank_old_v_no_update(self):
     self.d.case_name = self.v_case_name
     d = update_case_names(self.d, '')
     self.assertEqual(d.case_name, self.v_case_name)
Beispiel #8
0
 def test_new_v_old_blank_updates(self):
     self.d.case_name = ''
     d = update_case_names(self.d, self.new_case_name)
     self.assertEqual(d.case_name, self.new_case_name)