Пример #1
0
def test_strings_a_3():
    print('''
        test_strings_a_3
        ================
        actual test code
        ''')
    assert multiply('a', 3) == 'aaa'
Пример #2
0
 def test_numbers_5_6(self):
     print('''
         test_numbers_5_6
         ================
         actual test code
         ''')
     assert multiply(5, 6) == 30
Пример #3
0
 def test_strings_b_2(self):
     print('''
         test_strings_b_2
         ================
         actual test code
         ''')
     assert multiply('b', 2) == 'bb'
Пример #4
0
def test_numbers_3_4():
    print('''
        test_numbers_3_4
        ================
        actual test code
        ''')
    assert multiply(3, 4) == 12
Пример #5
0
    def test_strings_b_2(self):
        print
        'test_strings_b_2  <============================ actual test code'
        assert multiply('b', 2) == 'bb'


# run: $ py.test -s test_um_pytest_fixtures.py
Пример #6
0
def test_strings_a_3():
    assert multiply('a', 3) == 'aaa'


# Run: nosetests -v test_um_nose.py

# Running:
# $ python -m pytest test_um_pytest.py
# $ py.test test_um_pytest.py
# $ py.test -v test_um_pytest.py
Пример #7
0
 def test_cropspotential(self):
     # c:\Users\veper\Documents\SOFTAUS\StrawberryFields
     print(os.getcwd())
     seasonStartDay = datetime.datetime.now()
     currentHarvestingDay = datetime.datetime.now()
     currentHarvestingKg = 20
     maxDailyKg = 100
     predict_day(seasonStartDay, currentHarvestingDay, currentHarvestingKg,
                 maxDailyKg)
     self.assertEqual(multiply('a', 3), 'aaa')
Пример #8
0
def test_numbers_3_4():
	print 'test_numbers_3_4 <========================== actual test code'
	assert multiply(3,4) == 12
Пример #9
0
	def test_numbers_5_6(self):
		print 'test_numbers_5_6() <==================================== actual test code'
		assert multiply(5, 6) == 30
def test_numbers_3_4():
    assert multiply(3,4) == 12
Пример #11
0
def test_numbers_3_4():
    assert multiply(3,4) == 12 
def test_numbers_3_4():
    print 'test_numbers_3_4  <============================ actual test code'
    assert multiply(3, 4) == 12
 def test_numbers_5_6(self):
     print 'test_numbers_5_6()  <============================ actual test code'
     assert multiply(5, 6) == 30
Пример #14
0
 def test_strings_a_4(self):
     self.assertEqual(multiply('a', 4), 'aaaa')
Пример #15
0
 def test_numbers_3_4(self):
     self.assertEqual( multiply(3,4), 12)
Пример #16
0
 def test_numbers_5_6(self):
     """
         Check if 5x6=30
     """
     assert multiply(5, 6) == 30
Пример #17
0
 def test_numbers_3_4(self):
     self.assertEqual(multiply(3, 4), 12)
Пример #18
0
    def test_mallard(self):
        self.mallard.quack()
        self.mallard.fly()

        self.assertEqual(multiply(3, 4), 12)
 def test_strings_b_2(self):
     print "test_strings_b_2  <============================ actual test code"
     assert multiply("b", 2) == "bb"
Пример #20
0
 def test_strings_a_3(self):
     self.assertEqual(multiply("a", 3), "aaa")
Пример #21
0
  def test_disguised_turkey(self):
    self.turkey_in_disguise.quack()
    self.turkey_in_disguise.fly()

    self.assertEqual( multiply('a',3), 'aaa')
Пример #22
0
  def test_mallard(self):
    self.mallard.quack()
    self.mallard.fly()

    self.assertEqual( multiply(3,4), 12)
 def test_numbers_5_6(self):
     print "test_numbers_5_6  <============================ actual test code"
     assert multiply(5, 6) == 30
Пример #24
0
def test_numbers_4_5():
    assert multiply(3, 4) == 12
Пример #25
0
 def test_strings_b_2(self):
     """
         Check if a string parameter gets printed 2 times
     """
     assert multiply('b', 2) == 'bb'
Пример #26
0
 def test_strings_3_4_negative_case(self):
     with self.assertRaises(AssertionError):
         self.assertEqual(multiply(3, 4), 14)
Пример #27
0
 def test_numbers_3_5(self):
     self.assertEqual(multiply(3, 5), 15)
Пример #28
0
 def test_strings_a_5_negative_case(self):
     with self.assertRaises(AssertionError):
         self.assertEqual(multiply('a', 5), 'aaaaa')
Пример #29
0
def test_multiply():
    assert (multiply(2, 3) == 6)
Пример #30
0
 def test_numbers_3_4(self):
     print('\ntest_numbers_3_4 <======================= actual test code')
     assert multiply(3, 4) == 12
Пример #31
0
 def test_strings_a_3(self):
     self.assertEqual( multiply('a',3), 'aaa')
Пример #32
0
 def test_strings_a_3(self):
     print('\ntest_strings_a_2 <======================= actual test code')
     assert multiply('a', 3) == 'aaa'
def test_strings_a_3():
    print 'test_strings_a_3  <============================ actual test code'
    assert multiply('a', 3) == 'aaa'
Пример #34
0
 def test_numbers_100(self):
     print('\ntest_numbers_3_4 <======================= actual test code')
     assert multiply(10, 10) == 100
 def test_strings_b_2(self):
     print 'test_strings_b_2()  <============================ actual test code'
     assert multiply('b', 2) == 'bb'
Пример #36
0
 def test_strings_x_5(self):
     print('\ntest_strings_x_5 <======================= actual test code')
     assert multiply('x', 5) == 'xxxxx'
def test_strings_a_3():
    assert multiply('a',3) == 'aaa' 
Пример #38
0
def test_numbers_3_4(hello):
    print "test_numbers_3_4\n"
    assert multiply(3, 4) == 12
Пример #39
0
def test_strings_a_3():
    assert multiply('a',3) == 'aaa'
Пример #40
0
def test_numbers_4_5():
    assert multiply(3, 4) == 12
Пример #41
0
def test_strings_a_3():
	print 'test_strings_a_3 <========================== actual test code'
	assert multiply('a', 3) == 'aaa'
Пример #42
0
def test_numbers_3_4():
    """
        Check if 3x4=12
    """
    assert multiply(3, 4) == 12
Пример #43
0
	def test_strings_b_2(self):
		print 'test_strings_b_2() <==================================== actual test code'
		assert multiply('b', 2) == 'bb'
Пример #44
0
def test_strings_a_3():
    """
        Check if a string parameter gets printed 3 times
    """
    assert multiply('a', 3) == 'aaa'
Пример #45
0
    def test_disguised_turkey(self):
        self.turkey_in_disguise.quack()
        self.turkey_in_disguise.fly()

        self.assertEqual(multiply('a', 3), 'aaa')
def test_strings_a_3():
    print "test_strings_a_3  <============================ actual test code"
    assert multiply("a", 3) == "aaa"