Esempio n. 1
0
    def test_factory(self):
        from mixer.main import GenFactory

        g = GenFactory()
        test = g.gen_maker(int)()
        self.assertTrue(-2147483647 <= next(test) < 2147483647)

        test = g.gen_maker(bool)()
        self.assertTrue(next(test) in [True, False])
Esempio n. 2
0
def test_factory():
    """ Test base generator's factory. """
    from mixer.main import GenFactory

    g = GenFactory()
    test = g.gen_maker(int)()
    assert -2147483647 <= next(test) < 2147483647

    test = g.gen_maker(bool)()
    assert next(test) in (True, False)
Esempio n. 3
0
def test_factory():
    """ Test base generator's factory. """
    from mixer.main import GenFactory

    g = GenFactory()
    test = g.gen_maker(int)()
    assert -2147483647 <= next(test) < 2147483647

    test = g.gen_maker(bool)()
    assert next(test) in (True, False)
Esempio n. 4
0
    def test_factory(self):
        """ Test base generator's factory. """
        from mixer.main import GenFactory

        g = GenFactory()
        test = g.gen_maker(int)()
        self.assertTrue(-2147483647 <= next(test) < 2147483647)

        test = g.gen_maker(bool)()
        self.assertTrue(next(test) in [True, False])