summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-04-07 20:17:00 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-04-07 20:17:00 +0200
commita12a7618a1f6f61a4c97ddf4cc422158c3fa72ba (patch)
tree2b2e0e9991ddede152556f7954cd6e4c6121be97 /git/test
parente77d2d0ebb9487b696835f219e4a23a558462a55 (diff)
downloadgitpython-a12a7618a1f6f61a4c97ddf4cc422158c3fa72ba.tar.gz
Updated objects to use the ones defined in gitdb as basis. Only the submodule implementation is left in git-python as it requires some advanced features. No tests where run yet
Diffstat (limited to 'git/test')
-rw-r--r--git/test/objects/test_blob.py (renamed from git/test/test_blob.py)0
-rw-r--r--git/test/objects/test_commit.py (renamed from git/test/test_commit.py)0
-rw-r--r--git/test/objects/test_submodule.py (renamed from git/test/test_submodule.py)0
-rw-r--r--git/test/objects/test_tree.py (renamed from git/test/test_tree.py)0
-rw-r--r--git/test/test_actor.py36
5 files changed, 0 insertions, 36 deletions
diff --git a/git/test/test_blob.py b/git/test/objects/test_blob.py
index 661c0501..661c0501 100644
--- a/git/test/test_blob.py
+++ b/git/test/objects/test_blob.py
diff --git a/git/test/test_commit.py b/git/test/objects/test_commit.py
index 4a8d8b87..4a8d8b87 100644
--- a/git/test/test_commit.py
+++ b/git/test/objects/test_commit.py
diff --git a/git/test/test_submodule.py b/git/test/objects/test_submodule.py
index adb4fb82..adb4fb82 100644
--- a/git/test/test_submodule.py
+++ b/git/test/objects/test_submodule.py
diff --git a/git/test/test_tree.py b/git/test/objects/test_tree.py
index ec10e962..ec10e962 100644
--- a/git/test/test_tree.py
+++ b/git/test/objects/test_tree.py
diff --git a/git/test/test_actor.py b/git/test/test_actor.py
deleted file mode 100644
index b8e5ba3b..00000000
--- a/git/test/test_actor.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# test_actor.py
-# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
-#
-# This module is part of GitPython and is released under
-# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-
-import os
-from git.test.lib import *
-from git import *
-
-class TestActor(object):
- def test_from_string_should_separate_name_and_email(self):
- a = Actor._from_string("Michael Trier <mtrier@example.com>")
- assert_equal("Michael Trier", a.name)
- assert_equal("mtrier@example.com", a.email)
-
- # base type capabilities
- assert a == a
- assert not ( a != a )
- m = set()
- m.add(a)
- m.add(a)
- assert len(m) == 1
-
- def test_from_string_should_handle_just_name(self):
- a = Actor._from_string("Michael Trier")
- assert_equal("Michael Trier", a.name)
- assert_equal(None, a.email)
-
- def test_should_display_representation(self):
- a = Actor._from_string("Michael Trier <mtrier@example.com>")
- assert_equal('<git.Actor "Michael Trier <mtrier@example.com>">', repr(a))
-
- def test_str_should_alias_name(self):
- a = Actor._from_string("Michael Trier <mtrier@example.com>")
- assert_equal(a.name, str(a)) \ No newline at end of file