Beispiel #1
0
 def test_found_fallback(self):
     result = ExternalResult(1.0, 1.0, 10, 'lacf')
     assert not result.not_found()
Beispiel #2
0
 def test_not_found_accuracy(self):
     result = ExternalResult(1.0, 1.0, None, None)
     assert result.not_found()
Beispiel #3
0
 def test_found(self):
     result = ExternalResult(1.0, 1.0, 10, None)
     assert not result.not_found()
Beispiel #4
0
 def test_found_fallback(self):
     result = ExternalResult(1.0, 1.0, 10, 'lacf')
     self.assertFalse(result.not_found())
Beispiel #5
0
 def test_not_found(self):
     result = ExternalResult(None, None, None, None)
     assert result.not_found()
Beispiel #6
0
 def test_not_found(self):
     result = ExternalResult(None, None, None, None)
     self.assertTrue(result.not_found())
Beispiel #7
0
 def test_found(self):
     result = ExternalResult(1.0, 1.0, 10, None)
     self.assertFalse(result.not_found())
Beispiel #8
0
 def test_found(self):
     result = ExternalResult(1.0, 1.0, 10, None)
     self.assertFalse(result.not_found())
Beispiel #9
0
 def test_found_fallback(self):
     result = ExternalResult(1.0, 1.0, 10, 'lacf')
     self.assertFalse(result.not_found())
Beispiel #10
0
 def test_not_found_accuracy(self):
     result = ExternalResult(1.0, 1.0, None, None)
     self.assertTrue(result.not_found())
Beispiel #11
0
 def test_not_found(self):
     result = ExternalResult(None, None, None, None)
     self.assertTrue(result.not_found())
Beispiel #12
0
 def test_found_fallback(self):
     result = ExternalResult(1.0, 1.0, 10, 'lacf')
     assert not result.not_found()
Beispiel #13
0
 def test_found(self):
     result = ExternalResult(1.0, 1.0, 10, None)
     assert not result.not_found()
Beispiel #14
0
 def test_not_found(self):
     result = ExternalResult(None, None, None, None)
     assert result.not_found()