Example #1
0
 def test_isinstance(self):
     helper.test_builtin(self, "isinstance", params="'obj','class_or_tuple'", arguments="[1,2,3],list")
 def test_callable(self):
     helper.test_builtin(self,
                         "callable",
                         params="'obj'",
                         arguments="round")
 def test_dir(self):
     helper.test_builtin(self,
                         "dir",
                         params="'object'",
                         arguments="[1,2,3]")
 def test_sorted(self):
     helper.test_builtin(self,
                         "sorted",
                         params="'iterable'",
                         arguments="[4,3,2,1]")
 def test_type(self):
     helper.test_builtin(self,
                         "type",
                         params="'object'",
                         arguments="[1,2,3,4]")
 def test_ord(self):
     helper.test_builtin(self, "ord", params="'c'", arguments="'a'")
 def test_reversed(self):
     helper.test_builtin(self,
                         "reversed",
                         params="'sequence'",
                         arguments="[1,2,3]")
Example #8
0
 def test_print(self):
     helper.test_builtin(self, "print", params="'value'", arguments="123")
Example #9
0
 def test_repr(self):
     helper.test_builtin(self, "repr", params="'obj'", arguments="[1,2,3]")
Example #10
0
 def test_ord(self):
     helper.test_builtin(self, "ord", params="'c'", arguments="'a'")
Example #11
0
 def test_pow(self):
     helper.test_builtin(self, "pow", params="'x','y'", arguments="3,3")
     helper.test_builtin(self, "pow", params="'x','y','z'", arguments="3,3,5")
Example #12
0
 def test_oct(self):
     helper.test_builtin(self, "oct", params="'number'", arguments="12345")
Example #13
0
 def test_len(self):
     helper.test_builtin(self, "len", params="'obj'", arguments="[1,2,3]")
Example #14
0
 def test_issubclass(self):
     helper.test_builtin(self, "issubclass", params="'cls','class_or_tuple'", arguments="list,str")
Example #15
0
 def test_isinstance(self):
     helper.test_builtin(self,
                         "isinstance",
                         params="'obj','class_or_tuple'",
                         arguments="[1,2,3],list")
Example #16
0
 def test_all(self):
     helper.test_builtin(self, "all", params="'iterable'", arguments="[True, True]")
Example #17
0
 def test_len(self):
     helper.test_builtin(self, "len", params="'obj'", arguments="[1,2,3]")
Example #18
0
 def test_reversed(self):
     helper.test_builtin(self, "reversed", params = "'sequence'", arguments="[1,2,3]")
Example #19
0
 def test_print(self):
     helper.test_builtin(self, "print", params="'value'", arguments="123")
Example #20
0
 def test_round(self):
     helper.test_builtin(self, "round", params = "'number','ndigits'", arguments="2.123123, 2")
Example #21
0
 def test_set(self):
     helper.test_builtin(self, "set", params="", arguments="")
     helper.test_builtin(self,
                         "set",
                         params="'iterable'",
                         arguments="[1,2,3,4]")
Example #22
0
 def test_set(self):
     helper.test_builtin(self, "set", params="", arguments="")
     helper.test_builtin(self, "set", params="'iterable'", arguments="[1,2,3,4]")
Example #23
0
 def test_sum(self):
     helper.test_builtin(self,
                         "sum",
                         params="'iterable','start'",
                         arguments="[4,3,2,1],3")
Example #24
0
 def test_sorted(self):
     helper.test_builtin(self, "sorted", params = "'iterable'", arguments="[4,3,2,1]")
Example #25
0
 def test_bin(self):
     helper.test_builtin(self, "bin", params="'number'", arguments="123456")
Example #26
0
 def test_any(self):
     helper.test_builtin(self, "any", params="'iterable'", arguments="[True, False]")
Example #27
0
 def test_classmethod(self):
     helper.test_builtin(self,
                         "classmethod",
                         params="'function'",
                         arguments="str")
Example #28
0
 def test_str(self):
     helper.test_builtin(self, "str", params = "'object'", arguments="123")
Example #29
0
 def test_enumerate(self):
     helper.test_builtin(self,
                         "enumerate",
                         params="'iterable','start'",
                         arguments="[1,2,3],1")
Example #30
0
 def test_sum(self):
     helper.test_builtin(self, "sum", params = "'iterable','start'", arguments="[4,3,2,1],3")
Example #31
0
 def test_all(self):
     helper.test_builtin(self,
                         "all",
                         params="'iterable'",
                         arguments="[True, True]")
Example #32
0
 def test_tuple(self):
     helper.test_builtin(self, "tuple", params="", arguments="")
     helper.test_builtin(self, "tuple", params="'iterable'", arguments="[1,2,3,4]")
Example #33
0
 def test_issubclass(self):
     helper.test_builtin(self,
                         "issubclass",
                         params="'cls','class_or_tuple'",
                         arguments="list,str")
Example #34
0
 def test_type(self):
     helper.test_builtin(self, "type", params = "'object'", arguments="[1,2,3,4]")
Example #35
0
 def test_oct(self):
     helper.test_builtin(self, "oct", params="'number'", arguments="12345")
Example #36
0
 def test_ascii(self):
     helper.test_builtin(self, "ascii", params="'obj'", arguments="'test'")
Example #37
0
 def test_pow(self):
     helper.test_builtin(self, "pow", params="'x','y'", arguments="3,3")
     helper.test_builtin(self,
                         "pow",
                         params="'x','y','z'",
                         arguments="3,3,5")
Example #38
0
 def test_bin(self):
     helper.test_builtin(self, "bin", params="'number'", arguments="123456")
Example #39
0
 def test_repr(self):
     helper.test_builtin(self, "repr", params="'obj'", arguments="[1,2,3]")
Example #40
0
 def test_bool(self):
     helper.test_builtin(self, "bool", params="'x'", arguments="1")
Example #41
0
 def test_round(self):
     helper.test_builtin(self,
                         "round",
                         params="'number','ndigits'",
                         arguments="2.123123, 2")
Example #42
0
 def test_callable(self):
     helper.test_builtin(self, "callable", params="'obj'", arguments="round")
Example #43
0
 def test_any(self):
     helper.test_builtin(self,
                         "any",
                         params="'iterable'",
                         arguments="[True, False]")
Example #44
0
 def test_chr(self):
     helper.test_builtin(self, "chr", params="'i'", arguments="123")
Example #45
0
 def test_str(self):
     helper.test_builtin(self, "str", params="'object'", arguments="123")
Example #46
0
 def test_classmethod(self):
     helper.test_builtin(self, "classmethod", params="'function'", arguments="str")
Example #47
0
 def test_tuple(self):
     helper.test_builtin(self, "tuple", params="", arguments="")
     helper.test_builtin(self,
                         "tuple",
                         params="'iterable'",
                         arguments="[1,2,3,4]")
Example #48
0
 def test_complex(self):
     helper.test_builtin(self, "complex", params="'real','imag'", arguments="1,2")
Example #49
0
 def test_ascii(self):
     helper.test_builtin(self, "ascii", params="'obj'", arguments="'test'")
Example #50
0
 def test_dir(self):
     helper.test_builtin(self, "dir", params="'object'", arguments="[1,2,3]")
Example #51
0
 def test_bool(self):
     helper.test_builtin(self, "bool", params="'x'", arguments="1")
Example #52
0
 def test_divmod(self):
     helper.test_builtin(self, "divmod", params="'x','y'", arguments="7,3")
Example #53
0
 def test_chr(self):
     helper.test_builtin(self, "chr", params="'i'", arguments="123")
Example #54
0
 def test_enumerate(self):
     helper.test_builtin(self, "enumerate", params="'iterable','start'", arguments="[1,2,3],1")
Example #55
0
 def test_complex(self):
     helper.test_builtin(self,
                         "complex",
                         params="'real','imag'",
                         arguments="1,2")
Example #56
0
 def test_float(self):
     helper.test_builtin(self, "float", params="'x'", arguments="123")
Example #57
0
 def test_divmod(self):
     helper.test_builtin(self, "divmod", params="'x','y'", arguments="7,3")
Example #58
0
 def test_int(self):
     helper.test_builtin(self,
                         "int",
                         params="'x','base'",
                         arguments="'1001',2")
Example #59
0
 def test_float(self):
     helper.test_builtin(self, "float", params="'x'", arguments="123")
Example #60
0
 def test_int(self):
     helper.test_builtin(self, "int", params="'x','base'", arguments="'1001',2")