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