• Home
  • Raw
  • Download

Lines Matching refs:instance1

11     instance1 = m.ExampleMandA()
14 instance1.add1(instance2)
15 instance1.add2(instance2)
16 instance1.add3(instance2)
17 instance1.add4(instance2)
18 instance1.add5(instance2)
19 instance1.add6(32)
20 instance1.add7(32)
21 instance1.add8(32)
22 instance1.add9(32)
23 instance1.add10(32)
25 assert str(instance1) == "ExampleMandA[value=320]"
27 assert str(instance1.self1()) == "ExampleMandA[value=320]"
28 assert str(instance1.self2()) == "ExampleMandA[value=320]"
29 assert str(instance1.self3()) == "ExampleMandA[value=320]"
30 assert str(instance1.self4()) == "ExampleMandA[value=320]"
31 assert str(instance1.self5()) == "ExampleMandA[value=320]"
33 assert instance1.internal1() == 320
34 assert instance1.internal2() == 320
35 assert instance1.internal3() == 320
36 assert instance1.internal4() == 320
37 assert instance1.internal5() == 320
39 assert instance1.overloaded() == "()"
40 assert instance1.overloaded(0) == "(int)"
41 assert instance1.overloaded(1, 1.0) == "(int, float)"
42 assert instance1.overloaded(2.0, 2) == "(float, int)"
43 assert instance1.overloaded(3, 3) == "(int, int)"
44 assert instance1.overloaded(4.0, 4.0) == "(float, float)"
45 assert instance1.overloaded_const(-3) == "(int) const"
46 assert instance1.overloaded_const(5, 5.0) == "(int, float) const"
47 assert instance1.overloaded_const(6.0, 6) == "(float, int) const"
48 assert instance1.overloaded_const(7, 7) == "(int, int) const"
49 assert instance1.overloaded_const(8.0, 8.0) == "(float, float) const"
50 assert instance1.overloaded_float(1, 1) == "(float, float)"
51 assert instance1.overloaded_float(1, 1.0) == "(float, float)"
52 assert instance1.overloaded_float(1.0, 1) == "(float, float)"
53 assert instance1.overloaded_float(1.0, 1.0) == "(float, float)"
55 assert instance1.value == 320
56 instance1.value = 100
57 assert str(instance1) == "ExampleMandA[value=100]"
61 del instance1, instance2