Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

        ego = lambda x:x
        


src/l/i/list115utils-1.0.1/list115utils/test/test_listutils.py   list115utils(Download)
        self.simple_list = [1,2,3,4,5,6]
 
from list115utils import ego
class TestEgo(TestListUtils):
    def test_ego_returns_same_integer(self):
        self.assertEqual(ego(5), 5)
 
    def test_ego_returns_same_list(self):
        self.assertEqual(ego(self.simple_list), self.simple_list)
    def test_ego_on_empty_list_returns_empty_list(self):
        self.assertEqual(ego([]), [])
 
    def test_ego_on_empty_list_is_not_none(self):
        self.assertNotEqual(ego([]), None)