Exemplo n.º 1
0
    def test_is_in_range_for_fourth_percent_out_range(self):
        a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
        assert( a.is_in_range(3, 0.4)  == False)

    #--------------------------------------------------------------------------
    
    
           
Exemplo n.º 2
0
 def test_is_in_range_for_third_percent_out_range(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     assert( a.is_in_range(2, 0.5)  == False) 
Exemplo n.º 3
0
 def test_is_in_range_for_third_percent_bwtween_range(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     assert( a.is_in_range(2 , 0.85)  ==True ) 
Exemplo n.º 4
0
 def test_is_in_range_for_third_percent_limit2(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     
     assert( a.is_in_range(2, 0.9) == True) 
Exemplo n.º 5
0
 def test_is_in_range_for_second_percent_bwtween_range(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     assert( a.is_in_range(1, 0.30)  ==True ) 
Exemplo n.º 6
0
 def test_is_in_range_for_second_percent_limit2(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     
     assert( a.is_in_range(1, 0.5) == True) 
Exemplo n.º 7
0
 def test_is_in_range_for_first_percent_out_range(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     assert( a.is_in_range(0, 0.75)  == False) 
Exemplo n.º 8
0
 def test_is_in_range_for_first_percent_bwtween_range(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     
     assert( a.is_in_range(0, 0.63)  == True)   
Exemplo n.º 9
0
 def test_is_in_range_for_first_percent_limit2(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     
     assert( a.is_in_range(0, 0.70) == True) 
Exemplo n.º 10
0
 def test_is_in_range_for_fourth_percent_bwtween_range(self):
     a = Agent("1", "",0.7, 0.5, 0.9, 0.2)
     assert( a.is_in_range(3 , 0.1)  ==True )