Example #1
0
 def test_creates_article_template(self):
     newsite = NewSite()
     newsite.run()
     self.assertTrue(os.path.exists(os.path.join(path_to_site,
                                                 'templates/article.html')))
Example #2
0
 def test_creates_template_directory(self):
     path_to_templates = os.path.join(path_to_site, 'templates')
     self.assertFalse(os.path.exists(path_to_templates))
     newsite = NewSite()
     newsite.run()
     self.assertTrue(os.path.exists(path_to_templates))
Example #3
0
 def test_creates_content_directory(self):
     path_to_content = os.path.join(path_to_site, 'content')
     newsite = NewSite()
     newsite.run()
     self.assertTrue(os.path.exists(path_to_content))
Example #4
0
 def test_creates_draft_directory(self):
     path_to_drafts = os.path.join(path_to_site, 'drafts')
     self.assertFalse(os.path.exists(path_to_drafts))
     newsite = NewSite()
     newsite.run()
     self.assertTrue(os.path.exists(path_to_drafts))
Example #5
0
 def test_creates_site_directory(self):
     self.assertFalse(os.path.exists(path_to_site))
     newsite = NewSite()
     newsite.run()
     self.assertTrue(os.path.exists(path_to_site))