Ejemplo n.º 1
0
 def test_param_comments_not_begins(self):
     parameter_filter = rpw.ParameterFilter(self.param_id_comments,
                                            not_begins='Bla bla')
     col = rpw.Collector(of_class="Wall", parameter_filter=parameter_filter)
     self.assertEqual(len(col), 1)
Ejemplo n.º 2
0
 def tests_param_name_ends(self):
     parameter_filter = rpw.ParameterFilter(self.param_id_level_name,
                                            ends='1')
     col = rpw.Collector(of_category="OST_Levels",
                         parameter_filter=parameter_filter)
     self.assertEqual(len(col), 1)
Ejemplo n.º 3
0
 def test_param_comments_equals(self):
     parameter_filter = rpw.ParameterFilter(self.param_id_comments,
                                            equals='Tests')
     col = rpw.Collector(of_class="Wall", parameter_filter=parameter_filter)
     self.assertEqual(len(col), 1)
Ejemplo n.º 4
0
    def test_param_filter_int_less(self):
        parameter_filter = rpw.ParameterFilter(self.param_id_location, less=3)
        col = rpw.Collector(of_class="Wall", parameter_filter=parameter_filter)

        self.assertEqual(len(col), 1)
Ejemplo n.º 5
0
 def test_param_filter_float_multi_filter(self):
     parameter_filter = rpw.ParameterFilter(self.param_id_height,
                                            greater=10.0,
                                            not_less=14.0)
     col = rpw.Collector(of_class="Wall", parameter_filter=parameter_filter)
     self.assertEqual(len(col), 0)
Ejemplo n.º 6
0
 def test_param_filter_float_not_equal(self):
     parameter_filter = rpw.ParameterFilter(self.param_id_height,
                                            not_equals=12.0)
     col = rpw.Collector(of_class="Wall", parameter_filter=parameter_filter)
     self.assertEqual(len(col), 0)
Ejemplo n.º 7
0
 def test_param_filter_float_less_yes(self):
     parameter_filter = rpw.ParameterFilter(self.param_id_height, less=15.0)
     col = rpw.Collector(of_class="Wall", parameter_filter=parameter_filter)
     self.assertEqual(len(col), 1)