def test_creates_article_template(self): newsite = NewSite() newsite.run() self.assertTrue(os.path.exists(os.path.join(path_to_site, 'templates/article.html')))
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))
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))
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))
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))