def test_store_in_two_steps_crosswalks(self):
     crosswalks = [Node(47.0, 8.0), Node(47.1, 8.1)]
     store(crosswalks)
     store(crosswalks)
     with open(Constants.PATH_TO_CROSSWALKS, 'r') as f:
         data = json.load(f)
     self.assertTrue(len(data['crosswalks']) == 4);
 def test_store_zero_crosswalks(self):
     store([])
     with open(Constants.PATH_TO_CROSSWALKS, 'r') as f:
         data = json.load(f)
     self.assertTrue(len(data['crosswalks']) == 0);