Description: Update paths to assets copied from examples/ directory
 During tests the assets required for tests are copied into tests/
 and paths updated to allow the tests to be run from the build_dir root
Author: Nick Morrott <knowledgejunkie@gmail.com>
Forwarded: not-needed
Last-Update: 2018-12-10
---
--- a/tests/test_picture.py
+++ b/tests/test_picture.py
@@ -26,12 +26,12 @@
     a = App(layout = "grid")
     p = Picture(
         a,
-        image = "../examples/guizero.gif",
-        grid = [0,1], 
+        image = "tests/guizero.gif",
+        grid = [0,1],
         align = "top",
         width = 10,
         height = 11)
-    assert p.image == "../examples/guizero.gif"
+    assert p.image == "tests/guizero.gif"
     assert p._image.tk_image is not None
     assert p.grid[0] == 0
     assert p.grid[1] == 1
@@ -43,10 +43,10 @@
 def test_getters_setters():
     a = App()
     p = Picture(a)
-    
+
     assert p.image == None
-    p.image = "../examples/guizero.gif"
-    assert p.image == "../examples/guizero.gif"
+    p.image = "tests/guizero.gif"
+    assert p.image == "tests/guizero.gif"
     assert p._image.tk_image is not None
     p.width = 100
     assert p.width == 100
@@ -59,9 +59,9 @@
                     reason="PIL not available")
 def test_jpg():
     a = App()
-    p = Picture(a, image = "../examples/guizero.jpg")
-    
-    assert p.image == "../examples/guizero.jpg"
+    p = Picture(a, image = "tests/guizero.jpg")
+
+    assert p.image == "tests/guizero.jpg"
     assert p._image.tk_image is not None
     assert p._image.pil_image is not None
 
@@ -71,8 +71,8 @@
                     reason="PIL not available")
 def test_animated_picture():
     a = App()
-    p = Picture(a, image = "../examples/guizero_flash.gif")
-    
+    p = Picture(a, image = "tests/guizero_flash.gif")
+
     assert p._image.tk_image is not None
     assert p._image.pil_image is not None
     assert p._image.animation
@@ -82,9 +82,9 @@
 
 def test_picture_tkobject():
     from tkinter import PhotoImage
-    
+
     a = App()
-    photo_image = PhotoImage(file="../examples/guizero.gif")
+    photo_image = PhotoImage(file="tests/guizero.gif")
     p = Picture(a, image=photo_image)
     assert p.image == photo_image
     assert p._image.tk_image is not None
@@ -94,9 +94,9 @@
                     reason="PIL not available")
 def test_picture_pilobject():
     from PIL import Image
-    
+
     a = App()
-    pil_image = Image.open("../examples/guizero.gif")
+    pil_image = Image.open("tests/guizero.gif")
     p = Picture(a, image=pil_image)
     assert p.image == pil_image
     assert p._image.tk_image is not None
@@ -154,4 +154,4 @@
 def test_inherited_properties():
     a = App()
     inherited_properties_test(a, lambda: Picture(a), False)
-    a.destroy()
\ No newline at end of file
+    a.destroy()
--- a/tests/test_pushbutton.py
+++ b/tests/test_pushbutton.py
@@ -130,8 +130,8 @@
     
 def test_picture_gif():
     a = App()
-    b = PushButton(a, image="../examples/guizero.gif")
-    assert b.image == "../examples/guizero.gif"
+    b = PushButton(a, image="tests/guizero.gif")
+    assert b.image == "tests/guizero.gif"
     assert b._image.tk_image is not None
     a.destroy()
 
@@ -139,8 +139,8 @@
                     reason="PIL not available")
 def test_picture_jpg():
     a = App()
-    b = PushButton(a, image="../examples/guizero.jpg")
-    assert b.image == "../examples/guizero.jpg"
+    b = PushButton(a, image="tests/guizero.jpg")
+    assert b.image == "tests/guizero.jpg"
     assert b._image.tk_image is not None
     assert b._image.pil_image is not None
     a.destroy()
@@ -149,8 +149,8 @@
                     reason="PIL not available")
 def test_animated_picture():
     a = App()
-    b = PushButton(a, image="../examples/guizero_flash.gif")
-    assert b.image == "../examples/guizero_flash.gif"
+    b = PushButton(a, image="tests/guizero_flash.gif")
+    assert b.image == "tests/guizero_flash.gif"
     assert b._image.tk_image is not None
     assert b._image.pil_image is not None
     assert b._image.animation
@@ -161,7 +161,7 @@
     from tkinter import PhotoImage
     
     a = App()
-    photo_image = PhotoImage(file="../examples/guizero.gif")
+    photo_image = PhotoImage(file="tests/guizero.gif")
     b = PushButton(a, image=photo_image)
     assert b.image == photo_image
     assert b._image.tk_image is not None
@@ -173,7 +173,7 @@
     from PIL import Image
     
     a = App()
-    pil_image = Image.open("../examples/guizero.gif")
+    pil_image = Image.open("tests/guizero.gif")
     b = PushButton(a, image=pil_image)
     assert b.image == pil_image
     assert b._image.tk_image is not None
@@ -243,4 +243,4 @@
 def test_inherited_properties():
     a = App()
     inherited_properties_test(a, lambda: PushButton(a), True)
-    a.destroy()
\ No newline at end of file
+    a.destroy()
