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