churchyard / centos / centpkg

Forked from centos/centpkg 17 days ago
Clone

Blame tests/test_lookaside.py

29dd93
import os
29dd93
import unittest
29dd93
29dd93
from centpkg import lookaside
29dd93
29dd93
29dd93
class TestIsDistGit(unittest.TestCase):
29dd93
  def setUp(self):
29dd93
    cwd = os.path.dirname(os.path.realpath(__file__))
29dd93
    self.fixtures_dir = '%s/fixtures/layouts' % cwd
29dd93
29dd93
  def test_dist_git(self):
29dd93
    path = '%s/dist-git' % self.fixtures_dir
29dd93
    assert lookaside.is_dist_git(path)
29dd93
29dd93
  def test_dist_git_false(self):
29dd93
    path = '%s/srpm' % self.fixtures_dir
29dd93
    assert not lookaside.is_dist_git(path)