#NEWLINE# @ test . idempotent_id ( '8a59b00b-ab01-4787-92f8-93a5cdf5e378' ) #NEWLINE# def test_rule_create_fail_for_the_same_type( self ) : #NEWLINE# #INDENT# policy = self . create_qos_policy ( name = 'test-policy' , description = 'test policy' , shared = False ) #NEWLINE# self . create_qos_bandwidth_limit_rule ( policy_id = policy [ 'id' ] , max_kbps = 200 , max_burst_kbps = 1337 ) #NEWLINE# self . assertRaises ( exceptions . Conflict , self . create_qos_bandwidth_limit_rule , policy_id = policy [ 'id' ] , max_kbps = 201 , max_burst_kbps = 1338 )