Beispiel #1
0
    def test_nohash(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machine1 r56'))
        self.assertEqual(results, [('machine1', '5625'), ('machine1', '5624')])

        results = self._mangleResults(search(ts, 'machine1 56'))
        self.assertEqual(results, [('machine1', '5625'), ('machine1', '5624')])
Beispiel #2
0
    def test_specific(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machine1 #5625'))
        self.assertEqual(results, [('machine1', '5625')])

        results = self._mangleResults(search(ts, 'machine1 #5624'))
        self.assertEqual(results, [('machine1', '5624')])
Beispiel #3
0
    def test_nohash(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machine1 r56'))
        self.assertEqual(results, [
            ('machine1', '5625'), ('machine1', '5624')
        ])

        results = self._mangleResults(search(ts, 'machine1 56'))
        self.assertEqual(results, [
            ('machine1', '5625'), ('machine1', '5624')
        ])
Beispiel #4
0
    def test_specific(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machine1 #5625'))
        self.assertEqual(results, [
            ('machine1', '5625')
        ])

        results = self._mangleResults(search(ts, 'machine1 #5624'))
        self.assertEqual(results, [
            ('machine1', '5624')
        ])
Beispiel #5
0
    def test_default_machine(self):
        session = self.session
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(
            search(session, ts, '65', default_machine=3))
        self.assertEqual(results, [('machine2', '6512')])
Beispiel #6
0
    def test_default_order(self):
        session = self.session
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(session, ts, 'machi ne3'))
        self.assertEqual(results, [('machine3', '11324'), ('machine3', '7623'),
                                   ('machine3', '6512'), ('machine3', '65')])
Beispiel #7
0
    def test_default_machine(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, '65', default_machine=3))
        self.assertEqual(results, [
            ('machine2', '6512')
        ])
Beispiel #8
0
    def test_default_order(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machi ne2'))
        self.assertEqual(results, [
            ('machine2', '7623'), ('machine2', '6512')
        ])
Beispiel #9
0
    def test_multiple_orders(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machine1 #56'))
        self.assertEqual(results, [
            ('machine1', '5625'), ('machine1', '5624')
        ])
Beispiel #10
0
    def test_default_order(self):
        session = self.session
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(session, ts, 'machi ne3'))
        self.assertEqual(results, [
            ('machine3', '11324'),
            ('machine3', '7623'),
            ('machine3', '6512'),
            ('machine3', '65')
        ])
Beispiel #11
0
    def test_multiple_orders(self):
        session = self.session
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(session, ts, 'machine1 #56'))
        self.assertEqual(results, [('machine1', '5625'), ('machine1', '5624')])
Beispiel #12
0
    def test_default_order(self):
        ts = self.db.testsuite.get('nts')

        results = self._mangleResults(search(ts, 'machi ne2'))
        self.assertEqual(results, [('machine2', '7623'), ('machine2', '6512')])