Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
#!/bin/bash | |
if [[ ! -s "media.json" ]]; then | |
echo "*** ERROR: No media.json file in current directory" | |
exit 1 | |
fi | |
mkdir result | |
echo -n "Processing " |
FROM python:3.7-slim-stretch AS build | |
RUN \ | |
apt-get -q update \ | |
&& apt-get -q install -y --no-install-recommends \ | |
build-essential \ | |
libssl-dev \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& pip install -U pip |
# to run: | |
# > elixir --no-halt udp_server.exs | |
# to test: | |
# > echo "hello world" | nc -u -w0 localhost 2052 | |
# > echo "quit" | nc -u -w0 localhost 2052 | |
# Let's call our module "UDPServer" | |
defmodule UDPServer do | |
# Our module is going to use the DSL (Domain Specific Language) for Gen(eric) Servers | |
use GenServer |
from django.test import TestCase | |
from django.contrib import auth | |
class BaseAuthTestCase(TestCase): | |
def assertLoggedInAs(self, user): | |
client_user = auth.get_user(self.client) | |
self.assertEqual(client_user, user) | |
assert client_user.is_authenticated() |