コード例 #1
0
 def test_end_safe_block_sets_hashmap_key_to_false_when_correct_dict_is_passed(self):
     hashmap     = dict(start_time="", safe_block="")
     expected    = dict(start_time="", safe_block=False)
     utility.end_safe_block(hashmap)
     self.assertEqual(expected.get("safe_block"), hashmap.get("safe_block"))
コード例 #2
0
 def test_end_safe_block_return_none_when_hashmap_is_empty(self):
     hashmap     = dict()
     expected    = None
     result = utility.end_safe_block(hashmap)
     self.assertEqual(expected, result)