예제 #1
0
파일: tests.py 프로젝트: barthr/Parser
 def test_parse_monitoring(self):
     """ Monitoring data is put into parse to see if monitoring parsing
         method started is the result
     """
     data = [{"type": "monitoring", "unitid": 9842367843}, "monitoring"]
     self.assertEqual(parse(data), "Monitoring parsing method started")
예제 #2
0
파일: tests.py 프로젝트: barthr/Parser
 def test_parse_positions(self):
     """ Positions data is put into parse to see if positions parsing
         method started is the result
     """
     data = [{"type": "positions", "unitid": 9842367843}, "positions"]
     self.assertEqual(parse(data), "Positions parsing method started")
예제 #3
0
파일: tests.py 프로젝트: barthr/Parser
 def test_parse_false(self):
     """ Data is put into parse to test if a valid type is given"""
     data = [{"type": "blu", "unitid": 9842367843}, "blu"]
     self.assertFalse(parse(data))
예제 #4
0
파일: tests.py 프로젝트: barthr/Parser
 def test_parse_car(self):
     """ Car data is put into parse to see if car parsing method
         started is the result
     """
     data = [{"type": "car"}, "car"]
     self.assertEqual(parse(data), "Car parsing method started")
예제 #5
0
파일: tests.py 프로젝트: barthr/Parser
 def test_parse_events(self):
     """ Event data is put into parse to see if events parsing method
         started is the result
     """
     data = [{"type": "events", "unitid": 9842367843}, "events"]
     self.assertEqual(parse(data), "Events parsing method started")