""" Test running Drupdates on one repo. """
from __future__ import print_function
import os
from tests.behavioral.behavioral_utils import BehavioralUtils
from tests.behavioral.behavioral_utils import BehavioralException
from tests import Setup

class TestSimple(BehavioralUtils):

    @classmethod
    def setup_class(cls):
        utils = BehavioralUtils()
        utils.build(__file__)

    def __init__(self):
        base = Setup()
        self.test_directory = base.test_dir

    def test_repo_built(self):
        """ Test to ensure all three repos built successfully. """

        file = open(os.path.join(self.test_directory, 'results.txt'), 'r')
        results = file.readlines()
        updates = BehavioralUtils.list_duplicates_of(results, 'Siteupdate \n')
        """ If 1 repo Siteupdates in report repo built successfully. """
        assert len(updates) == 1

    def test_repo_updated(self):
        """ Test to ensure the repo was updated. """

        file = open(os.path.join(self.test_directory, 'results.txt'), 'r')
        results = file.readlines()
        updates = BehavioralUtils.list_duplicates_of(results, 'Siteupdate \n')
        index = updates[0]
        status = "status : The following updates were applied"
        assert results[index + 1].strip() == status

    def test_git_commit_author(self):
        pass

@@ -84,16 +84,79 @@
 mport os
+, yaml, git%0Afrom git import Repo%0Afrom os.path import expanduser
 %0Afrom te
@@ -1401,9 +1401,498 @@
     
-pass
+%22%22%22 Test to verify the name of the git commit is %22Drupdates%22. %22%22%22%0A%0A        file = open(os.path.join(expanduser('~'), '.drupdates', 'settings.yaml'), 'r')%0A        settings = yaml.load(file)%0A        working_dir = os.path.join(expanduser('~'), '.drupdates', 'builds')%0A        folder = os.path.join(working_dir, settings%5B'repoDict'%5D%5B'value'%5D%5B'drupal'%5D)%0A        repo = Repo(folder)%0A        repo.heads.dev%0A        devcommit = repo.heads.dev.commit%0A        assert devcommit.author.name == 'Drupdates'
 %0A

Add test for commit author to test_custom_working_settings.py