示例#1
0
 def test_simple(self):
     self.assertEquals(make_rest_call('flip_boolean', b=False), True)
     self.assertEquals(make_rest_call('flip_boolean', b=True), False)
示例#2
0
 def test_simple(self):
     self.assertEquals(make_rest_call('add_integers', a=100, b=50), 150)
示例#3
0
 def test_diff_size(self):
     self.assertEquals(
         make_rest_call(
             'add_integer_lists', p=[1, 2, 3], q=[3, -5, 0, 11, -5]),
         [4, -3, 3, 11, -5])
示例#4
0
 def test_empty(self):
     self.assertEquals(
         make_rest_call('add_integer_lists', p=[], q=[]), [])
示例#5
0
 def test_one(self):
     self.assertEquals(
         make_rest_call('add_integer_lists', p=[1], q=[2]), [3])
示例#6
0
 def test_simple(self):
     self.assertEquals(
         make_rest_call('add_integer_lists', p=[1, 2, 3], q=[3, -5, 0]),
         [4, -3, 3])
示例#7
0
 def test_dt(self):
     self.assertEqual(
         make_rest_call('next_month_dt', d='2011-08-20T00:04:59'),
         '2011-09-20T00:04:59+00:00')
示例#8
0
 def test_diff_size(self):
     self.assertEquals(
         make_rest_call('add_integer_lists',
                        p=[1, 2, 3],
                        q=[3, -5, 0, 11, -5]), [4, -3, 3, 11, -5])
示例#9
0
 def test_dt(self):
     self.assertEqual(
         make_rest_call('next_month_dt', d='2011-08-20T00:04:59'),
         '2011-09-20T00:04:59+00:00')
示例#10
0
 def test_simple(self):
     self.assertEqual(
         make_rest_call('next_month', d='2011-08-20'), '2011-09-20')
示例#11
0
 def test_simple(self):
     self.assertEquals(make_rest_call('add_simple', a='hello', b=' world'),
                       'hello world')
示例#12
0
 def test_one(self):
     self.assertEquals(make_rest_call('add_integer_lists', p=[1], q=[2]),
                       [3])
示例#13
0
 def test_empty(self):
     self.assertEquals(make_rest_call('add_integer_lists', p=[], q=[]), [])
示例#14
0
 def test_simple(self):
     self.assertEquals(
         make_rest_call('add_simple', a='hello', b=' world'), 'hello world')
示例#15
0
 def test_simple(self):
     self.assertEqual(make_rest_call('next_month', d='2011-08-20'),
                      '2011-09-20')
示例#16
0
 def test_simple(self):
     self.assertEquals(make_rest_call('add_integers', a=100, b=50), 150)
示例#17
0
 def test_simple(self):
     self.assertEquals(
         make_rest_call('add_integer_lists', p=[1, 2, 3], q=[3, -5, 0]),
         [4, -3, 3])