Exemplo n.º 1
0
    def test_match_with_value1(self):
        "Should be match value 1 with ModelOne value """

        find = ModelOne.get_model_one_by_value1(500)
        assert_equals(len(find), 2)
        assert_equals(find[0].id, self.obj1_id)
        assert_equals(find[1].id, self.obj2_id)
Exemplo n.º 2
0
    def test_match_with_value1(self):
        "Should be match value 1 with ModelOne value " ""

        find = ModelOne.get_model_one_by_value1(500)
        assert_equals(len(find), 2)
        assert_equals(find[0].id, self.obj1_id)
        assert_equals(find[1].id, self.obj2_id)
    def test_match_with_value1(self):
        """Expected no results. """

        find = ModelOne.get_model_one_by_value1(500)
        assert_equals(len(find), 0)
Exemplo n.º 4
0
    def test_match_with_value1(self):
        """Expected no results. """

        find = ModelOne.get_model_one_by_value1(500)
        assert_equals(len(find), 0)