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

All Samples(234)  |  Call(234)  |  Derive(0)  |  Import(0)
Fail if the two objects are unequal as determined by the '=='
operator.

src/s/k/skeleton-0.6/skeleton/tests/test_examples.py   skeleton(Download)
            skel.write(tmp.path)
 
            self.assertEqual(skel['third_clause'], '')
            self.assertTrue(tmp.exists('LICENSE'))
 
 
            self.assertEqual(
                skel['third_clause'],
                BSD_THIRD_CLAUSE.format(organization='Foo inc')
                )
 
        self.assertTrue(isinstance(skel.license_skel, NoLicense))
        self.assertEqual(skel.license_skel['author'], 'Damien Lebrun')
 
    def test_bsd_licence_skel(self):
            skel.write(tmp.path)
 
            self.assertEqual(skel['ns_packages'], [])
            self.assertEqual(skel['packages'], ['foo'])
 

src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_examples.py   skeleton_stu(Download)
            skel.write(tmp.path)
 
            self.assertEqual(skel['third_clause'], '')
            self.assertTrue(tmp.exists('LICENSE'))
 
 
            self.assertEqual(
                skel['third_clause'],
                BSD_THIRD_CLAUSE.format(organization='Foo inc')
                )
 
        self.assertTrue(isinstance(skel.license_skel, NoLicense))
        self.assertEqual(skel.license_skel['author'], 'Damien Lebrun')
 
    def test_bsd_licence_skel(self):
            skel.write(tmp.path)
 
            self.assertEqual(skel['ns_packages'], [])
            self.assertEqual(skel['packages'], ['foo'])
 

src/s/k/skeleton-HEAD/skeleton/tests/test_examples.py   skeleton(Download)
            skel.write(tmp.path)
 
            self.assertEqual(skel['third_clause'], '')
            self.assertTrue(tmp.exists('LICENSE'))
 
 
            self.assertEqual(
                skel['third_clause'],
                BSD_THIRD_CLAUSE.format(organization='Foo inc')
                )
 
        self.assertTrue(isinstance(skel.license_skel, NoLicense))
        self.assertEqual(skel.license_skel['author'], 'Damien Lebrun')
 
    def test_bsd_licence_skel(self):
            skel.write(tmp.path)
 
            self.assertEqual(skel['ns_packages'], [])
            self.assertEqual(skel['packages'], ['foo'])
 

src/s/k/skeleton-0.6/skeleton/tests/test_core.py   skeleton(Download)
        self.assertFalse('baz' in skel)
 
        self.assertEqual(skel['foo'], 1)
        self.assertEqual(skel['bar'], 2)
        self.assertRaises(KeyError, skel.__getitem__, 'baz')
 
        self.assertEqual(skel.get('foo'), 1)
        self.assertEqual(skel.get('bar'), 2)
        self.assertEqual(skel.get('baz'), None)

src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_core.py   skeleton_stu(Download)
        self.assertFalse('baz' in skel)
 
        self.assertEqual(skel['foo'], 1)
        self.assertEqual(skel['bar'], 2)
        self.assertRaises(KeyError, skel.__getitem__, 'baz')
 
        self.assertEqual(skel.get('foo'), 1)
        self.assertEqual(skel.get('bar'), 2)
        self.assertEqual(skel.get('baz'), None)

src/s/k/skeleton-HEAD/skeleton/tests/test_core.py   skeleton(Download)
        self.assertFalse('baz' in skel)
 
        self.assertEqual(skel['foo'], 1)
        self.assertEqual(skel['bar'], 2)
        self.assertRaises(KeyError, skel.__getitem__, 'baz')
 
        self.assertEqual(skel.get('foo'), 1)
        self.assertEqual(skel.get('bar'), 2)
        self.assertEqual(skel.get('baz'), None)

src/s/k/skeleton-0.6/skeleton/tests/test_utils.py   skeleton(Download)
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', '# -*- insert here -*- #\n', 'bar\n', 'baz\n']
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.read().strip(),
                    'foo\n  # -*- insert here -*- #\n  bar\n  fooz\nbaz'
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', '  # -*- insert here -*- #\n', 'bar\n', 'baz\n']
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', 'bar\n', 'baz\n']
                    )

src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_utils.py   skeleton_stu(Download)
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', '# -*- insert here -*- #\n', 'bar\n', 'baz\n']
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.read().strip(),
                    'foo\n  # -*- insert here -*- #\n  bar\n  fooz\nbaz'
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', '  # -*- insert here -*- #\n', 'bar\n', 'baz\n']
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', 'bar\n', 'baz\n']
                    )

src/s/k/skeleton-HEAD/skeleton/tests/test_utils.py   skeleton(Download)
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', '# -*- insert here -*- #\n', 'bar\n', 'baz\n']
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.read().strip(),
                    'foo\n  # -*- insert here -*- #\n  bar\n  fooz\nbaz'
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', '  # -*- insert here -*- #\n', 'bar\n', 'baz\n']
                    )
            with open(target) as f_target:
                self.assertEqual(
                    f_target.readlines(),
                    ['foo\n', 'bar\n', 'baz\n']
                    )