Ejemplo n.º 1
0
    def test_new_crashes(self):
        config = self.get_standard_config()
        db_sampling = DBCrashStorageWrapperNewCrashSource(config)

        # the call to be tested & what should have happened
        for i, (exp, actual) in enumerate(
                izip_longest(self.expected_sequence,
                             db_sampling.new_crashes())):
            assert exp == actual

        assert i == 4
Ejemplo n.º 2
0
    def test_new_crashes(self):
        config = self.get_standard_config()
        db_sampling = DBCrashStorageWrapperNewCrashSource(config)

        # the call to be tested & what should have happened
        for i, (exp, actual) in enumerate(
                izip_longest(self.expected_sequence,
                             db_sampling.new_crashes())):
            eq_(exp, actual)

        eq_(
            i, 4, 'there should have been exactly 5 iterations, instead: %d' %
            (i + 1))
Ejemplo n.º 3
0
    def test_new_crashes(self):
        config = self.get_standard_config()
        db_sampling = DBCrashStorageWrapperNewCrashSource(config)

        # the call to be tested & what should have happened
        for i, (exp, actual) in enumerate(izip_longest(
            self.expected_sequence,
            db_sampling.new_crashes())
        ):
            eq_(exp, actual)

        eq_(
            i,
            4,
            'there should have been exactly 5 iterations, instead: %d'
            % (i + 1)
        )