예제 #1
0
 def test_belowRoom(self):
     self.assertFalse(
         dc.isInRoom(json.dumps(self.BASIC_GOOD_ROOM), 37.229854,
                     -80.417724, 2000))
예제 #2
0
 def test_outOfLonLow(self):
     self.assertFalse(
         dc.isInRoom(json.dumps(self.BASIC_GOOD_ROOM), 37.229854,
                     -80.417994, 2085))
예제 #3
0
 def test_outOfLatHigh(self):
     self.assertFalse(
         dc.isInRoom(json.dumps(self.BASIC_GOOD_ROOM), 37.229894,
                     -80.417724, 2085))
예제 #4
0
 def test_completelyOutThere(self):
     self.assertFalse(dc.isInRoom(json.dumps(self.BASIC_GOOD_ROOM), 0, 0,
                                  0))
예제 #5
0
 def test_clippedCorner(self):
     self.assertFalse(
         dc.isInRoom(json.dumps(self.BASIC_GOOD_ROOM), 37.229874,
                     -80.417704, 2085))
예제 #6
0
 def test_inRoom(self):
     self.assertTrue(
         dc.isInRoom(json.dumps(self.BASIC_GOOD_ROOM), 37.229854,
                     -80.417724, 2085))